Skip to content

Conversation

@Shaenn
Copy link

@Shaenn Shaenn commented Aug 18, 2023

Hello,
Good job, for all, it's an amazing lib.

In my work, I use application/octet-stream for downloading file, but the parameter format wasn't set to 'blob'.

I can add a content-type image/png, but it's not really good, but it work...

I make this PR to resvolve this.

Best regards, Shaenn

application/octet-stream must be set format: 'blob'
@planetdaz
Copy link

I could really use this too. My API Produces a content-type of application/pdf but the generated api request is setting to a format of json when it needs to be blob.

Note: I'm using Axios, is there a way for me to override this format to get a requestType of 'blob'?

Thanks!

@smorimoto smorimoto requested a review from Copilot December 28, 2024 17:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (1)

src/schema-routes/schema-routes.js:320

  • Ensure that the new behavior for handling 'application/octet-stream' content type is covered by tests.
_.some(contentTypes, (contentType) => _.includes(contentType, 'application/octet-stream'))

@Shaenn Shaenn closed this Jan 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants